import { createBrowserRouter } from "react-router-dom";

import Home from '../pages/home/Index'
import Login from '../pages/login/Index'
import Index from "../pages/home/Index";
import Todo from '../pages/todo/Index'
import List from '../pages/list/Index'
import App from "../App";

let routes=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                path:'/home',
                element:<Home></Home>
            },
            {
                path:'/index',
                element:<Index></Index>
            },
            {
                path:'/todo',
                element:<Todo></Todo>
            },
            
        ]
    },
    {
        path:'/login',
        element:<Login></Login>
    },
    {
        path:'/list',
        element:<List></List>
    }
])

export default routes;